package com.lin.util;

import com.lin.entity.GroupInformation;

/**
 * @author Created by Lin Weihong
 * @date on 2022/4/18 12:59
 */
public class CountMemberNumberUtils {
    public static double countMemberNumber(GroupInformation groupInformation) {
        //默认有队长一个人
        double count = 1;
        if (groupInformation.getMemberOneId() != null) {
            count++;
        }
        if (groupInformation.getMemberTwoId() != null) {
            count++;
        }
        if (groupInformation.getMemberThreeId() != null) {
            count++;
        }
        if (groupInformation.getMemberFourId() != null) {
            count++;
        }
        return count;
    }
}
